<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI交友推荐 - 智能匹配你的理想伙伴</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #6366f1;
            --primary-light: #f0f9ff;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            box-shadow: var(--shadow);
            background-color: white;
        }
        
        .container {
            padding: 2rem 0;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--primary);
            display: inline-block;
        }
        
        .section-subtitle {
            color: var(--secondary);
            margin-bottom: 2rem;
            max-width: 800px;
        }
        
        /* AI推荐头部 */
        .ai-header {
            background-color: white;
            border-radius: 0.75rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }
        
        .ai-icon {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: var(--primary);
        }
        
        .ai-info h3 {
            margin-bottom: 0.5rem;
            font-size: 1.25rem;
        }
        
        .ai-info p {
            margin-bottom: 0;
            color: var(--secondary);
        }
        
        /* 切换布局按钮 */
        .view-options {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            justify-content: flex-end;
        }
        
        .view-btn {
            background-color: white;
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            padding: 0.5rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .view-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .view-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 卡片布局 */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 3rem;
        }
        
        .ai-card {
            background-color: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .ai-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .card-images {
            height: 200px;
            position: relative;
            background-color: var(--light);
        }
        
        .card-image-single {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .card-image-multiple {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 2px;
            height: 100%;
        }
        
        .card-image-multiple img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .no-image {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            color: var(--secondary);
            background-color: var(--light);
        }
        
        .no-image i {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--primary-light);
        }
        
        .image-count {
            position: absolute;
            bottom: 0.5rem;
            right: 0.5rem;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 0.25rem;
            font-size: 0.8rem;
        }
        
        .card-content {
            padding: 1.25rem;
        }
        
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .user-name {
            font-weight: 600;
            margin-bottom: 0;
        }
        
        .user-meta {
            font-size: 0.875rem;
            color: var(--secondary);
        }
        
        .match-score {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 0.25rem 0.75rem;
            border-radius: 999px;
            font-weight: 600;
            font-size: 0.875rem;
        }
        
        .card-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            font-size: 1.1rem;
        }
        
        .card-description {
            color: var(--secondary);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .card-tag {
            background-color: var(--light);
            color: var(--secondary);
            padding: 0.25rem 0.75rem;
            border-radius: 999px;
            font-size: 0.8rem;
        }
        
        .card-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
        }
        
        .card-stats {
            display: flex;
            gap: 1rem;
            font-size: 0.875rem;
            color: var(--secondary);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .action-buttons {
            display: flex;
            gap: 0.5rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--secondary);
            padding: 0.25rem 0.5rem;
            border-radius: 0.25rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .action-btn:hover {
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .action-btn.active {
            color: var(--danger);
        }
        
        .contact-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.375rem 1rem;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            transition: background-color 0.2s;
        }
        
        .contact-btn:hover {
            background-color: #4f46e5;
        }
        
        /* 列表布局 */
        .list-view {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            margin-bottom: 3rem;
        }
        
        .list-item {
            background-color: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: var(--shadow);
            display: grid;
            grid-template-columns: 200px 1fr auto;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .list-item:hover {
            transform: translateX(5px);
            box-shadow: var(--shadow-hover);
        }
        
        .list-image-container {
            height: 100%;
            min-height: 160px;
            position: relative;
        }
        
        .list-content {
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
        }
        
        .list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        
        .list-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            font-size: 1.25rem;
        }
        
        .list-description {
            color: var(--secondary);
            font-size: 0.95rem;
            margin-bottom: 1rem;
            flex: 1;
        }
        
        .list-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .list-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        .list-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        /* 网格布局 - 大图片样式 */
        .grid-large {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }
        
        .large-card {
            background-color: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .large-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .large-image-container {
            height: 240px;
            position: relative;
        }
        
        .large-content {
            padding: 1.5rem;
        }
        
        .large-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1rem;
            margin-top: 1rem;
            border-top: 1px solid var(--border);
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .list-item {
                grid-template-columns: 160px 1fr;
            }
            
            .list-actions {
                grid-column: 1 / -1;
                padding: 1rem 1.25rem;
                border-top: 1px solid var(--border);
            }
        }
        
        @media (max-width: 768px) {
            .ai-header {
                flex-direction: column;
                text-align: center;
            }
            
            .list-item {
                grid-template-columns: 1fr;
            }
            
            .list-image-container {
                height: 200px;
            }
            
            .grid-large {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-robot text-primary me-2"></i>AI社交
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">AI推荐</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">发现</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">消息</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center gap-3">
                    <button class="btn btn-outline-primary">登录</button>
                    <button class="btn btn-primary">注册</button>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主要内容区 -->
    <div class="container">
        <h2 class="section-title">AI交友推荐</h2>
        <p class="section-subtitle">基于你的兴趣、性格和社交偏好，我们的AI系统为你智能匹配了以下潜在好友。每一次推荐都经过多维度分析，帮你找到最合适的社交伙伴。</p>
        
        <!-- AI推荐说明 -->
        <div class="ai-header">
            <div class="ai-icon">
                <i class="fas fa-brain"></i>
            </div>
            <div class="ai-info">
                <h3>本次推荐基于你的兴趣和社交模式</h3>
                <p>我们分析了你的社交偏好、兴趣标签和互动历史，为你推荐了9位高度匹配的潜在好友。匹配度超过80%的推荐会标记为"优先推荐"。</p>
            </div>
        </div>
        
        <!-- 布局切换选项 -->
        <div class="view-options">
            <button class="view-btn active" id="cardViewBtn">
                <i class="fas fa-th-large"></i> 卡片布局
            </button>
            <button class="view-btn" id="listViewBtn">
                <i class="fas fa-list"></i> 列表布局
            </button>
            <button class="view-btn" id="gridViewBtn">
                <i class="fas fa-th"></i> 大图布局
            </button>
        </div>
        
        <!-- 卡片布局视图 -->
        <div class="view-container" id="cardView">
            <div class="card-grid">
                <!-- 推荐1 - 多图 -->
                <div class="ai-card">
                    <div class="card-images">
                        <div class="card-image-multiple">
                            <img src="https://picsum.photos/300/300?random=1" alt="旅行照片1">
                            <img src="https://picsum.photos/300/300?random=2" alt="旅行照片2">
                            <img src="https://picsum.photos/300/300?random=3" alt="旅行照片3">
                            <img src="https://picsum.photos/300/300?random=4" alt="旅行照片4">
                        </div>
                        <div class="image-count">+2</div>
                    </div>
                    <div class="card-content">
                        <div class="card-header">
                            <div>
                                <div class="user-info">
                                    <img src="https://picsum.photos/100/100?random=10" alt="张雨晴的头像" class="user-avatar">
                                    <div>
                                        <p class="user-name">张雨晴</p>
                                        <p class="user-meta">26岁 · 上海</p>
                                    </div>
                                </div>
                            </div>
                            <div class="match-score">匹配度 92%</div>
                        </div>
                        <h3 class="card-title">寻找旅行伙伴 - 探索小众目的地</h3>
                        <p class="card-description">喜欢深度旅行，探索不为人知的小众景点，擅长摄影和记录旅行故事。希望找到同样热爱旅行的朋友一起规划行程。</p>
                        <div class="card-tags">
                            <span class="card-tag">旅行</span>
                            <span class="card-tag">摄影</span>
                            <span class="card-tag">美食</span>
                            <span class="card-tag">户外</span>
                        </div>
                        <div class="card-actions">
                            <div class="card-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 528
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 42
                                </div>
                            </div>
                            <div class="action-buttons">
                                <button class="action-btn like-btn">
                                    <i class="fas fa-heart"></i> 128
                                </button>
                                <button class="action-btn bookmark-btn">
                                    <i class="fas fa-bookmark"></i> 76
                                </button>
                                <button class="contact-btn">联系</button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 推荐2 - 单图 -->
                <div class="ai-card">
                    <div class="card-images">
                        <img src="https://picsum.photos/600/400?random=20" alt="音乐会照片" class="card-image-single">
                    </div>
                    <div class="card-content">
                        <div class="card-header">
                            <div>
                                <div class="user-info">
                                    <img src="https://picsum.photos/100/100?random=20" alt="李哲的头像" class="user-avatar">
                                    <div>
                                        <p class="user-name">李哲</p>
                                        <p class="user-meta">29岁 · 北京</p>
                                    </div>
                                </div>
                            </div>
                            <div class="match-score">匹配度 87%</div>
                        </div>
                        <h3 class="card-title">音乐爱好者 - 寻找现场演出同伴</h3>
                        <p class="card-description">痴迷独立音乐和现场演出，经常去livehouse和音乐节。希望找到能一起看演出、分享音乐的朋友。</p>
                        <div class="card-tags">
                            <span class="card-tag">音乐</span>
                            <span class="card-tag">现场演出</span>
                            <span class="card-tag">独立乐队</span>
                        </div>
                        <div class="card-actions">
                            <div class="card-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 342
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 28
                                </div>
                            </div>
                            <div class="action-buttons">
                                <button class="action-btn like-btn">
                                    <i class="fas fa-heart"></i> 95
                                </button>
                                <button class="action-btn bookmark-btn">
                                    <i class="fas fa-bookmark"></i> 53
                                </button>
                                <button class="contact-btn">联系</button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 推荐3 - 无图 -->
                <div class="ai-card">
                    <div class="card-images">
                        <div class="no-image">
                            <i class="fas fa-book-reader"></i>
                            <span>阅读爱好者</span>
                        </div>
                    </div>
                    <div class="card-content">
                        <div class="card-header">
                            <div>
                                <div class="user-info">
                                    <img src="https://picsum.photos/100/100?random=30" alt="王建国的头像" class="user-avatar">
                                    <div>
                                        <p class="user-name">王建国</p>
                                        <p class="user-meta">32岁 · 广州</p>
                                    </div>
                                </div>
                            </div>
                            <div class="match-score">匹配度 85%</div>
                        </div>
                        <h3 class="card-title">读书会成员 - 每月共读一本书</h3>
                        <p class="card-description">热爱文学和历史，每月组织线上读书会。希望找到认真阅读、乐于分享观点的朋友加入讨论。</p>
                        <div class="card-tags">
                            <span class="card-tag">阅读</span>
                            <span class="card-tag">文学</span>
                            <span class="card-tag">历史</span>
                            <span class="card-tag">线上活动</span>
                        </div>
                        <div class="card-actions">
                            <div class="card-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 287
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 36
                                </div>
                            </div>
                            <div class="action-buttons">
                                <button class="action-btn like-btn">
                                    <i class="fas fa-heart"></i> 82
                                </button>
                                <button class="action-btn bookmark-btn">
                                    <i class="fas fa-bookmark"></i> 64
                                </button>
                                <button class="contact-btn">联系</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 列表布局视图 -->
        <div class="view-container" id="listView" style="display: none;">
            <div class="list-view">
                <!-- 列表项1 - 多图 -->
                <div class="list-item">
                    <div class="list-image-container">
                        <div class="card-image-multiple">
                            <img src="https://picsum.photos/300/300?random=1" alt="旅行照片1">
                            <img src="https://picsum.photos/300/300?random=2" alt="旅行照片2">
                            <img src="https://picsum.photos/300/300?random=3" alt="旅行照片3">
                            <img src="https://picsum.photos/300/300?random=4" alt="旅行照片4">
                        </div>
                        <div class="image-count">+2</div>
                    </div>
                    <div class="list-content">
                        <div class="list-header">
                            <div class="user-info">
                                <img src="https://picsum.photos/100/100?random=10" alt="张雨晴的头像" class="user-avatar">
                                <div>
                                    <p class="user-name">张雨晴 <span class="match-score">匹配度 92%</span></p>
                                    <p class="user-meta">26岁 · 上海</p>
                                </div>
                            </div>
                        </div>
                        <h3 class="list-title">寻找旅行伙伴 - 探索小众目的地</h3>
                        <p class="list-description">喜欢深度旅行，探索不为人知的小众景点，擅长摄影和记录旅行故事。希望找到同样热爱旅行的朋友一起规划行程。我每年会安排3-4次长途旅行和多次短途周末游，偏好自然景观和人文历史丰富的地方。</p>
                        <div class="list-footer">
                            <div class="list-tags">
                                <span class="card-tag">旅行</span>
                                <span class="card-tag">摄影</span>
                                <span class="card-tag">美食</span>
                                <span class="card-tag">户外</span>
                            </div>
                            <div class="card-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 528
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 42
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 128
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-bookmark"></i> 76
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="list-actions">
                        <button class="contact-btn">联系TA</button>
                        <div class="action-buttons">
                            <button class="action-btn like-btn">
                                <i class="fas fa-heart"></i> 点赞
                            </button>
                            <button class="action-btn bookmark-btn">
                                <i class="fas fa-bookmark"></i> 收藏
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 列表项2 - 单图 -->
                <div class="list-item">
                    <div class="list-image-container">
                        <img src="https://picsum.photos/600/400?random=20" alt="音乐会照片" class="card-image-single">
                    </div>
                    <div class="list-content">
                        <div class="list-header">
                            <div class="user-info">
                                <img src="https://picsum.photos/100/100?random=20" alt="李哲的头像" class="user-avatar">
                                <div>
                                    <p class="user-name">李哲 <span class="match-score">匹配度 87%</span></p>
                                    <p class="user-meta">29岁 · 北京</p>
                                </div>
                            </div>
                        </div>
                        <h3 class="list-title">音乐爱好者 - 寻找现场演出同伴</h3>
                        <p class="list-description">痴迷独立音乐和现场演出，经常去livehouse和音乐节。希望找到能一起看演出、分享音乐的朋友。主要听后摇、独立民谣和爵士，有自己的音乐播客，偶尔也会弹吉他。</p>
                        <div class="list-footer">
                            <div class="list-tags">
                                <span class="card-tag">音乐</span>
                                <span class="card-tag">现场演出</span>
                                <span class="card-tag">独立乐队</span>
                            </div>
                            <div class="card-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 342
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 28
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 95
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-bookmark"></i> 53
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="list-actions">
                        <button class="contact-btn">联系TA</button>
                        <div class="action-buttons">
                            <button class="action-btn like-btn">
                                <i class="fas fa-heart"></i> 点赞
                            </button>
                            <button class="action-btn bookmark-btn">
                                <i class="fas fa-bookmark"></i> 收藏
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 列表项3 - 无图 -->
                <div class="list-item">
                    <div class="list-image-container">
                        <div class="no-image">
                            <i class="fas fa-book-reader"></i>
                            <span>阅读爱好者</span>
                        </div>
                    </div>
                    <div class="list-content">
                        <div class="list-header">
                            <div class="user-info">
                                <img src="https://picsum.photos/100/100?random=30" alt="王建国的头像" class="user-avatar">
                                <div>
                                    <p class="user-name">王建国 <span class="match-score">匹配度 85%</span></p>
                                    <p class="user-meta">32岁 · 广州</p>
                                </div>
                            </div>
                        </div>
                        <h3 class="list-title">读书会成员 - 每月共读一本书</h3>
                        <p class="list-description">热爱文学和历史，每月组织线上读书会。希望找到认真阅读、乐于分享观点的朋友加入讨论。目前正在读卡尔维诺的《看不见的城市》，下个月计划读《人类简史》。</p>
                        <div class="list-footer">
                            <div class="list-tags">
                                <span class="card-tag">阅读</span>
                                <span class="card-tag">文学</span>
                                <span class="card-tag">历史</span>
                                <span class="card-tag">线上活动</span>
                            </div>
                            <div class="card-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 287
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 36
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 82
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-bookmark"></i> 64
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="list-actions">
                        <button class="contact-btn">联系TA</button>
                        <div class="action-buttons">
                            <button class="action-btn like-btn">
                                <i class="fas fa-heart"></i> 点赞
                            </button>
                            <button class="action-btn bookmark-btn">
                                <i class="fas fa-bookmark"></i> 收藏
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 大图布局视图 -->
        <div class="view-container" id="gridView" style="display: none;">
            <div class="grid-large">
                <!-- 大图项1 - 多图 -->
                <div class="large-card">
                    <div class="large-image-container">
                        <div class="card-image-multiple">
                            <img src="https://picsum.photos/300/300?random=1" alt="旅行照片1">
                            <img src="https://picsum.photos/300/300?random=2" alt="旅行照片2">
                            <img src="https://picsum.photos/300/300?random=3" alt="旅行照片3">
                            <img src="https://picsum.photos/300/300?random=4" alt="旅行照片4">
                        </div>
                        <div class="image-count">+2</div>
                    </div>
                    <div class="large-content">
                        <div class="card-header">
                            <div class="user-info">
                                <img src="https://picsum.photos/100/100?random=10" alt="张雨晴的头像" class="user-avatar">
                                <div>
                                    <p class="user-name">张雨晴 <span class="match-score">匹配度 92%</span></p>
                                    <p class="user-meta">26岁 · 上海</p>
                                </div>
                            </div>
                        </div>
                        <h3 class="card-title">寻找旅行伙伴 - 探索小众目的地</h3>
                        <p class="card-description">喜欢深度旅行，探索不为人知的小众景点，擅长摄影和记录旅行故事。希望找到同样热爱旅行的朋友一起规划行程。我每年会安排3-4次长途旅行和多次短途周末游，偏好自然景观和人文历史丰富的地方。</p>
                        <div class="card-tags">
                            <span class="card-tag">旅行</span>
                            <span class="card-tag">摄影</span>
                            <span class="card-tag">美食</span>
                            <span class="card-tag">户外</span>
                        </div>
                        <div class="large-footer">
                            <div class="card-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 528
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 42
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 128
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-bookmark"></i> 76
                                </div>
                            </div>
                            <div class="action-buttons">
                                <button class="action-btn like-btn">
                                    <i class="fas fa-heart"></i> 点赞
                                </button>
                                <button class="action-btn bookmark-btn">
                                    <i class="fas fa-bookmark"></i> 收藏
                                </button>
                                <button class="contact-btn">联系TA</button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 大图项2 - 单图 -->
                <div class="large-card">
                    <div class="large-image-container">
                        <img src="https://picsum.photos/600/400?random=20" alt="音乐会照片" class="card-image-single">
                    </div>
                    <div class="large-content">
                        <div class="card-header">
                            <div class="user-info">
                                <img src="https://picsum.photos/100/100?random=20" alt="李哲的头像" class="user-avatar">
                                <div>
                                    <p class="user-name">李哲 <span class="match-score">匹配度 87%</span></p>
                                    <p class="user-meta">29岁 · 北京</p>
                                </div>
                            </div>
                        </div>
                        <h3 class="card-title">音乐爱好者 - 寻找现场演出同伴</h3>
                        <p class="card-description">痴迷独立音乐和现场演出，经常去livehouse和音乐节。希望找到能一起看演出、分享音乐的朋友。主要听后摇、独立民谣和爵士，有自己的音乐播客，偶尔也会弹吉他。</p>
                        <div class="card-tags">
                            <span class="card-tag">音乐</span>
                            <span class="card-tag">现场演出</span>
                            <span class="card-tag">独立乐队</span>
                        </div>
                        <div class="large-footer">
                            <div class="card-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 342
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 28
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 95
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-bookmark"></i> 53
                                </div>
                            </div>
                            <div class="action-buttons">
                                <button class="action-btn like-btn">
                                    <i class="fas fa-heart"></i> 点赞
                                </button>
                                <button class="action-btn bookmark-btn">
                                    <i class="fas fa-bookmark"></i> 收藏
                                </button>
                                <button class="contact-btn">联系TA</button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 大图项3 - 无图 -->
                <div class="large-card">
                    <div class="large-image-container">
                        <div class="no-image">
                            <i class="fas fa-book-reader fa-4x"></i>
                            <span>阅读爱好者</span>
                        </div>
                    </div>
                    <div class="large-content">
                        <div class="card-header">
                            <div class="user-info">
                                <img src="https://picsum.photos/100/100?random=30" alt="王建国的头像" class="user-avatar">
                                <div>
                                    <p class="user-name">王建国 <span class="match-score">匹配度 85%</span></p>
                                    <p class="user-meta">32岁 · 广州</p>
                                </div>
                            </div>
                        </div>
                        <h3 class="card-title">读书会成员 - 每月共读一本书</h3>
                        <p class="card-description">热爱文学和历史，每月组织线上读书会。希望找到认真阅读、乐于分享观点的朋友加入讨论。目前正在读卡尔维诺的《看不见的城市》，下个月计划读《人类简史》。</p>
                        <div class="card-tags">
                            <span class="card-tag">阅读</span>
                            <span class="card-tag">文学</span>
                            <span class="card-tag">历史</span>
                            <span class="card-tag">线上活动</span>
                        </div>
                        <div class="large-footer">
                            <div class="card-stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 287
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 36
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 82
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-bookmark"></i> 64
                                </div>
                            </div>
                            <div class="action-buttons">
                                <button class="action-btn like-btn">
                                    <i class="fas fa-heart"></i> 点赞
                                </button>
                                <button class="action-btn bookmark-btn">
                                    <i class="fas fa-bookmark"></i> 收藏
                                </button>
                                <button class="contact-btn">联系TA</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多 -->
        <div class="text-center mt-4">
            <button class="btn btn-outline-primary" id="loadMoreBtn">
                <i class="fas fa-refresh me-2"></i>加载更多推荐
            </button>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 布局切换功能
            const cardViewBtn = document.getElementById('cardViewBtn');
            const listViewBtn = document.getElementById('listViewBtn');
            const gridViewBtn = document.getElementById('gridViewBtn');
            
            const cardView = document.getElementById('cardView');
            const listView = document.getElementById('listView');
            const gridView = document.getElementById('gridView');
            
            cardViewBtn.addEventListener('click', function() {
                // 更新按钮状态
                cardViewBtn.classList.add('active');
                listViewBtn.classList.remove('active');
                gridViewBtn.classList.remove('active');
                
                // 显示对应视图
                cardView.style.display = 'block';
                listView.style.display = 'none';
                gridView.style.display = 'none';
            });
            
            listViewBtn.addEventListener('click', function() {
                // 更新按钮状态
                listViewBtn.classList.add('active');
                cardViewBtn.classList.remove('active');
                gridViewBtn.classList.remove('active');
                
                // 显示对应视图
                listView.style.display = 'block';
                cardView.style.display = 'none';
                gridView.style.display = 'none';
            });
            
            gridViewBtn.addEventListener('click', function() {
                // 更新按钮状态
                gridViewBtn.classList.add('active');
                cardViewBtn.classList.remove('active');
                listViewBtn.classList.remove('active');
                
                // 显示对应视图
                gridView.style.display = 'block';
                cardView.style.display = 'none';
                listView.style.display = 'none';
            });
            
            // 点赞功能
            const likeBtns = document.querySelectorAll('.like-btn');
            
            likeBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    
                    if (this.classList.contains('active')) {
                        // 取消点赞
                        this.classList.remove('active');
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        
                        // 更新点赞数（如果有数字显示）
                        if (this.textContent.trim().match(/\d+/)) {
                            let count = parseInt(this.textContent.trim().match(/\d+/)[0]);
                            this.innerHTML = `<i class="${icon.classList.value}"></i> ${count - 1}`;
                        }
                    } else {
                        // 点赞
                        this.classList.add('active');
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        
                        // 更新点赞数（如果有数字显示）
                        if (this.textContent.trim().match(/\d+/)) {
                            let count = parseInt(this.textContent.trim().match(/\d+/)[0]);
                            this.innerHTML = `<i class="${icon.classList.value}"></i> ${count + 1}`;
                        }
                    }
                });
            });
            
            // 收藏功能
            const bookmarkBtns = document.querySelectorAll('.bookmark-btn');
            
            bookmarkBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.classList.toggle('active');
                });
            });
            
            // 加载更多功能
            const loadMoreBtn = document.getElementById('loadMoreBtn');
            loadMoreBtn.addEventListener('click', function() {
                this.innerHTML = '<i class="fas fa-spinner fa-spin me-2"></i>加载中...';
                
                // 模拟加载延迟
                setTimeout(() => {
                    this.innerHTML = '<i class="fas fa-check me-2"></i>已加载全部推荐';
                    this.disabled = true;
                    this.classList.remove('btn-outline-primary');
                    this.classList.add('btn-outline-secondary');
                }, 1500);
            });
        });
    </script>
</body>
</html>
    
